
.box {
  position: relative;
  width: 800px;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  transform: rotateY(360deg) rotateX(30deg) rotateZ(30deg);
  // &:hover {
  //   .face-2,
  //   .face-12,
  //   .face-7 {
  //     span {
  //       font-size: 40px;
  //       color: #fff;
  //       text-shadow: 0 0 8px #fff, 0 0 15px #4285f4, 0 0 25px #4285f4;
  //     }
  //     &::after {
  //       background: rgba(39, 15, 250, 0.7);
  //       /* 突出面强化发光 */
  //       box-shadow: 0 0 15px rgba(39, 15, 250, 0.8),
  //         0 0 30px rgba(39, 15, 250, 0.6),
  //         inset 0 0 10px rgba(255, 255, 255, 0.5);
  //     }
  //   }
  // }
}

.ball-wrap {
  perspective: 2500px;
  position: relative;
  z-index: 1;
}

.box {
  div {
    position: absolute;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    z-index: 10; /* 确保文字在多边形上方显示 */
    transition: all 0.5s ease; /* 添加过渡效果 */

    span {
      font-weight: 600;
      font-size: 32px;
      transition: font-size 0.5s ease, text-shadow 0.5s ease; /* 添加文字过渡效果 */
      color: transparent;
      background-image: -webkit-gradient(
        linear,
        left top,
        left bottom,
        color-stop(35%, #fff),
        to(#3869cc)
      );
      background-image: linear-gradient(to bottom, #c6f3bf 35%, #aef1d2 60%,#31e458 100%);
      -webkit-background-clip: text;
  
    }
  }
}

.box > div::before {
  position: absolute;
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(242, 242, 245, 0.05);
  // background: rgba(255, 255, 255, 1);// 边框色
  transform: scale(1.08);
  z-index: -1; /* 让多边形背景在文字下方 */
}

.box > div::after {
  position: absolute;
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  z-index: -1; /* 让多边形颜色在文字下方 */
  transition: all 0.5s ease; /* 添加过渡效果 */
}

/* 多边形基础形状（尺寸通过JS动态设置） */
.polygon6::before,
.polygon6::after {
  clip-path: polygon(0 50%, 25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%);
}
.polygon6::after,
.polygon5::after {
  // background: rgba(6, 6, 243, 0.5);
  background: rgba(3, 3, 122, 0.5);
  &:hover {
    background: rgba(66, 53, 245, 0.7);
  }
}
/* 六边形（白色）用黑色文字 */
.polygon6 {
  color: #fff;
}

.polygon5::before,
.polygon5::after {
  clip-path: polygon(
    50% 0,
    97.55% 34.55%,
    79.39% 90.45%,
    20.6% 90.45%,
    2.45% 34.55%
  );
}

/* 五边形（黑色）用白色文字 */
.polygon5 {
  color: #fff;
}

@keyframes rotateBall {
  0% {
    transform: rotateY(0deg) rotateX(30deg) rotateZ(30deg);
  }
  100% {
    transform: rotateY(360deg) rotateX(30deg) rotateZ(30deg);
  }
}

.face-text-7 {
  transform: rotateZ(155deg);
}
.face-text-12 {
  transform: rotateZ(-47deg);
}
.face-text-2 {
  transform: rotateZ(-41deg);
}

/* 模糊效果类 */
.blur-effect {
  filter: blur(3px);
  opacity: 0.6;
}
.focus-effect{
  span {
    // font-size: 40px !important;
    // color: #fff !important;
     /* 文字颜色设为透明（只保留描边） */
     color: transparent;
     /* 设置文字描边（宽度+颜色），需加webkit前缀兼容主流浏览器 */
     -webkit-text-stroke: 1px #fff; /* 描边宽度1px，颜色#333 */
     font-size: 60px !important; /* 文字大小 */
     font-weight: bold; /* 可选：加粗让描边更清晰 */
     background-image:none !important;
  }
  &::after {
    background: rgba(16, 2, 145, 0.7) !important;

  }
}

.system-wrap{
  width: 700px;
  height: 600px;
  position: absolute;
  // border: 1px solid #000;
  top: 10px;
  z-index: 2;
  .system-menu{
    height: 50px;
    background: url('~@path/static/images/theme7/arrow.png') no-repeat;
    background-size: 100% 100%;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 65px;
    min-width: 200px;
    span{
      color: #fff;
      cursor: pointer; 
      font-size: 16px;
      display: inline-block;
      height: 35px;
      line-height: 35px;
      &:not(:last-child){
        padding-right:10px;
        border-right:  1px solid #fff;
        margin-right: 10px;
      }
      &:hover{
        color: #3869cc;
      }
    }
  }
  .menu-one{
    top: 160px;
    left: -63px;
  }
  .menu-two{
    top: 373px;
    left: -91px;
  }
  .menu-three{
    top: 192px;
    right: -159px;
  }
}

// 使用keyframes的替代方案
@keyframes slideInLeft {
  from {
    // transform: translateX(-100%);
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
    display: none;
  }
}

@keyframes slideInRight {
  from {
    // transform: translateX(100%);
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
    display: none;

  }
}

.system-menu {
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}

.system-wrap:hover .menu-one,
.system-wrap:hover .menu-two {
  animation-name: slideInLeft;
}

.system-wrap:hover .menu-three {
  animation-name: slideInRight;
}

.system-wrap:not(:hover) .menu-one,
.system-wrap:not(:hover) .menu-two {
  animation-name: slideOutLeft;
}

.system-wrap:not(:hover) .menu-three {
  animation-name: slideOutRight;
}